package cn.devices.service.impl;

import cn.devices.entity.TbAuthDm;
import cn.devices.mapper.TbAuthDmMapper;
import cn.devices.service.TbAuthDmService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 * 部门权限表 服务实现类
 * </p>
 *
 * @author 秋水浮萍
 * @since 2021-02-07
 */
@Service
public class TbAuthDmServiceImpl implements TbAuthDmService {

    @Autowired
    private TbAuthDmMapper tbAuthDmMapper;

    @Override
    public int tbAuthDmAdd(TbAuthDm tbAuthDm) {
        return tbAuthDmMapper.tbAuthDmAdd(tbAuthDm);
    }

    @Override
    public int tbAuthDmDelete(String typeId, String deCode) {
        return tbAuthDmMapper.tbAuthDmDelete(typeId, deCode);
    }

    @Override
    public List<TbAuthDm> tbAuthDmList(String depCode) {
        return tbAuthDmMapper.tbAuthDmList(depCode);
    }
}
